'use strict';
module.exports = (app) => {
  const { STRING, INTEGER, TEXT } = app.Sequelize;
  const Follow = app.model.define('b_follow', {
    id: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },
    followUserId: {
      comment: '发起关注的人',
      type: INTEGER,
      allowNull: false,
    },
    beFollowUserId: {
      comment: '被关注的人',
      type: INTEGER,
      allowNull: false,
    },
    projectId: {
      comment: '所属项目id',
      type: INTEGER,
      allowNull: false,
    },
  });

  return Follow;
};
